package cmdb

import (
	"gitee.com/ChangPaoZhe/client/config"
	"gitee.com/ChangPaoZhe/client/ioc"
	"gitee.com/ChangPaoZhe/devops/apps/cmdb"
	"github.com/rs/zerolog"

)


type  CmdbImpl struct{
	logger  zerolog.Logger
	cmdb.UnimplementedRPCServer
}

func (c *CmdbImpl)Name() string {
	return  App_Name
}

func (c *CmdbImpl)Init()  error{
	c.logger=config.C.Logs.Getlog(App_Name)
	return nil   
}

func init(){
	ioc.Register(&CmdbImpl{})
}